package com.example.mapper;

import com.example.entity.Notice;
import com.example.entity.Params;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface NoticeMapper {
    List<Notice> findBySearch(@Param("params") Params params);

    List<Notice> findTop();

    int insert(Notice notice);

    void deleteById(Integer id);
}
